package com.hs.sfzy.service.impl;

import com.hs.sfzy.entity.Level;
import com.hs.sfzy.mapper.LevelMapper;
import com.hs.sfzy.service.LevelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName LevelServiceimpl
 * @Description TODO
 * @Author wangzhihao
 * @Date 2025年08月12日 21:44
 * @Version 1.0
 */
@Service
public class LevelServiceimpl implements LevelService {
@Autowired
private LevelMapper levelMapper;
    @Override
    public int addLevel(Level level) {
        return levelMapper.addLevel(level);
    }

    @Override
    public Level getLevel(int id) {
        return levelMapper.getLevel(id);
    }

    @Override
    public List<Level> getAllLevel() {
        return levelMapper.getAllLevel();
    }
}
